<template>
  <!--导航栏-->
  <CustomNavbar></CustomNavbar>
  <Calendar></Calendar>
</template>

<script lang="ts" setup>
import CustomNavbar from './components/CustomNavbar.vue';
import Calendar from './components/Calendar.vue'
</script>

<style scoped>
.calendar-container {
  padding: 20rpx;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20rpx;
  font-size: 34rpx;
}

.month-title {
  font-weight: bold;
}

.arrow {
  padding: 0 20rpx;
  font-size: 40rpx;
}

.weekdays {
  display: flex;
  justify-content: space-around;
  padding: 20rpx 0;
  background-color: #f5f5f5;
  border-radius: 10rpx;
}

.days-grid {
  display: flex;
  flex-wrap: wrap;
}

.day-item {
  width: 14.28%; /* 7等分 */
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10rpx;
  position: relative;
}

.not-current-month {
  color: #ccc;
}

.today {
  background-color: #007AFF;
  color: white;
}

.event-dot {
  width: 10rpx;
  height: 10rpx;
  background-color: red;
  border-radius: 50%;
  position: absolute;
  bottom: 10rpx;
}
</style>